import formencode
from formencode import validators

class Contact(formencode.Schema):
    allow_extra_fields = True

    name = validators.String(not_empty=True)
    phone = validators.String()
    email = validators.String()
    message = validators.String(not_empty=True)    
